/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.interfaces;

import east2west.dto.FlightsDTO;
import java.util.ArrayList;

/**
 *
 * @author anhtuan
 */
public interface FlightsInterface {

    ArrayList<FlightsDTO> readByAll();

    FlightsDTO findById(int id);

    ArrayList<FlightsDTO> findByCode(String code);

    ArrayList<FlightsDTO> findByDeparture(String departure);

    ArrayList<FlightsDTO> findByDestination(String destination);

    ArrayList<FlightsDTO> findByFlightDate(String date);

    ArrayList<FlightsDTO> findByFlightTime(String time);

    ArrayList<FlightsDTO> findByDTO(FlightsDTO dto);

    boolean create(FlightsDTO flight);

    boolean update(FlightsDTO flight);

    boolean delete(FlightsDTO flight);

    boolean delete(int id);
    ArrayList<FlightsDTO> findByTop();
    ArrayList<FlightsDTO> findAllOrtherId(int id);
}
